package com.qk.management.controller;

import com.github.pagehelper.Page;
import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.domain.operatelog.OperateLogDO;
import com.qk.dto.operatelog.OperateLogDTO;
import com.qk.management.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author 李智勇
 * @data 2025/10/17 19:42
 */
@RestController
@RequestMapping("/logs")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;
    @GetMapping
    public Result list(OperateLogDTO dto) {
        PageResult<OperateLogDO> result = operateLogService.operateLogList(dto);
        return Result.success(result);
    }
}
